package com.blog.mapper;


import com.blog.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {

    // user register
    boolean register(User user);


    // user login
    User login(User user);

    // get user state
    Integer getUserState(@Param("account") String account,@Param("password") String password);


    // by user account get info
    Integer byUserAccountGetInfo(@Param("account") String account);
}
